<?php

namespace app\system\controller\logic;
use app\common\model\logic\CustomerContactModel;
use app\common\model\logic\CustomerOrderModel;
use app\system\controller\BaseController;
use think\Request;

class CustomerOrderController extends BaseController
{
    private $orderModel;

    /**
     * 初始化
     */
    public function __construct(Request $request)
    {
        parent::__construct($request);
        $this->orderModel   =   new CustomerOrderModel();
    }
    public function getList(){
        $customerId=$this->request->param('customer_id');
        $list=$this->orderModel->getlist(['customer_id'=>$customerId],'limit','20');
        /*调取节点*/

        return $list;
    }
}
